<!--
 * @Description: 图片精灵
 * @Author: rendc
 * @Date: 2022-09-22 09:30:10
 * @LastEditors: rendc
 * @LastEditTime: 2022-09-22 10:26:38
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>图片精灵</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    #main{
      height: 100vh;
      padding: 10px;
      border-width: 100px;
    }
    .one,.two,.three,.four{
      width: 35px;
      height: 35px;
      background-image: url(./img/data_image.png);
      /* border: 1px solid red; */
    }
    .one{
      background-position: 6px -35px ;
    }
    .two{
      background-position: -23px -35px ;
    }
    .three{
      background-position: -52px -35px ;
    }
    .four{
      background-position: -81px -64px ;
    }
  </style>
</head>
<body>
  <div id="main">
    <div class="one"></div>
    <div class="two"></div>
    <div class="three"></div>
    <div class="four"></div>
  </div>
</body>
</html>